﻿@page "/Toast"
@using System.Diagnostics.CodeAnalysis
@using System.Drawing;
@using System.Reflection

@inject IJSRuntime jsRuntime
@inject IToastService _toastService

<h3>Toast</h3>

<Button Text="Toast" OnClick="ToastClick" />


<BlazoredToasts Position="ToastPosition.TopRight"
                Timeout="5"
                IconType="IconType.FontAwesome"
                SuccessClass="success-toast-override"
                SuccessIcon="fa fa-thumbs-up"
                ErrorIcon="fa fa-bug" ShowProgressBar="true" />

@code {

    private async Task ToastClick()
    {
        _toastService.ShowError("红红火火恍恍惚惚哈哈哈哈哈");
    }
}
